Login     Sign up
Cannot blacklist an IP address
HometownDirectories (@danyaeldemonic)
Join date: Oct 31st 2011
Community posts: 39
View Profile
Send Message

Whenever I'm trying to blacklist a spammer IP I'm getting this message:

Fatal error: Call to undefined method admin::blacklist() in /home/danyael/public_html/hometown-directories.com/index.php on line 46

If anyone can help with this I'd greatly appreciate it. I got about 10 spammers into my site last night :(

152 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

check if you have the function blacklist in the file admin.module.php

152 months ago
HometownDirectories (@danyaeldemonic)
Join date: Oct 31st 2011
Community posts: 39
View Profile
Send Message

I found this section

    <strong>'.$user['ipaddress'].'</strong> (<a href="[url]http://www.google.ca/search?q='.$user['ipaddress'].'"[/url] target="_blank">Whois</a>)<form action="'.url('admin/blacklist').'" method="post">

    <input type="hidden" name="ip" value="'.$user['ipaddress'].'" /><input type="submit" value="Add this IP to Blacklist" /></form>

But that's all that I see concerning blacklisting someone. There IS a file named blacklist.module.php

152 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

this is what you need

[code]
function blacklist($step,$id) {
global $nav;
$nav[] = url('admin/blacklist',t('Blacklist'));
include "modules/admin/inc/blacklist.php";
}
[/code]

152 months ago
HometownDirectories (@danyaeldemonic)
Join date: Oct 31st 2011
Community posts: 39
View Profile
Send Message

forgive the ignorance here, still new to php & jcow. does that text replace the one I posted? Where does that one go? I'm on version 4.3.1

152 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

the blacklist option doesn't work in the free version

152 months ago
HometownDirectories (@danyaeldemonic)
Join date: Oct 31st 2011
Community posts: 39
View Profile
Send Message

ahhhh the option is there, i have the blacklist button...but it won't work unless i get pro?

152 months ago
HometownDirectories (@danyaeldemonic)
Join date: Oct 31st 2011
Community posts: 39
View Profile
Send Message

found this thread and it works on 4.3.1 :)

http://community.jcow.net/forums/viewthread/1761

152 months ago